package com.demo.springboot;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class App {

    public static void main(String[] args) {

        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext("com.demo.springboot");
        //System.out.println("User: " +context.getBean("user"));
        // context.getBean("createUser",User.class).show();
        //context.getBean("book",Book.class).show();
        context.getBean(Bank.class).show();
        // context.getBean(Dog.class).show();
        context.close();

    }
}
